<template>
	<view>
		<u-navbar title="搜索" placeholder :autoBack="true">
		</u-navbar>
		<view class="searchBox">
			<u--input placeholder="请输入关键词" prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399"></u--input>
			<view class="line"></view>
			<view class="confirm">搜索</view>
		</view>

		<view class="page-classify-right-content">
			<view class="page-classify-right-content-item" v-for="item,index in 12" :key="index" @click="route_product">
				<image style="width: 190rpx;height: 190rpx;border-radius: 16rpx;margin-right: 20rpx;flex-shrink: 0;"
					src="https://cdn.uviewui.com/uview/swiper/swiper1.png" mode="aspectFill"></image>
				<view class="page-classify-right-content-item-info">
					<view class="page-classify-right-content-item-info-title">
						鲜甜多汁红龙果，自然成熟，营养满满！
					</view>
					<view class="page-classify-right-content-item-info-doc">
						约3斤，毛重6斤
					</view>
					<view class="page-classify-right-content-item-info-price">
						<view>
							<text style="font-size: 24rpx;">￥</text>
							222
						</view>
					</view>
				</view>
			</view>
		</view>

		<u-gap height="30rpx"></u-gap>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isEmpty: true,
			}
		},
		methods: {
			route_product() {
				uni.navigateTo({
					url: "/pages/product/index"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.page-classify-right-content {
		display: flex;
		flex-direction: column;

		&-item {
			margin: 0 30rpx;
			padding: 30rpx 0;
			display: flex;
			align-content: center;

			&:not(:first-child) {
				border-top: 2rpx solid #D9D9D9;
			}

			&-info {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				width: 100%;

				&-title {
					width: 100%;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
					word-break: break-all;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: normal;
				}

				&-doc {
					width: max-content;
					background: rgba(237, 123, 66, 0.06);
					border-radius: 4rpx 4rpx 4rpx 4rpx;
					border: 1rpx solid rgba(237, 123, 66, 0.3);
					padding: 6rpx 10rpx;
					font-weight: 400;
					font-size: 24rpx;
					color: #ED7B42;
					line-height: 30rpx;
				}

				&-price {
					width: 100%;
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-weight: 500;
					font-size: 32rpx;
					color: #ED7B42;
				}
			}
		}
	}



	.searchBox {
		width: 690rpx;
		height: 78rpx;
		background: #FFFFFF;
		border-radius: 200rpx 200rpx 200rpx 200rpx;
		border: 1rpx solid #28BA54;
		display: flex;
		align-items: center;
		margin: 30rpx auto 0;

		.line {
			width: 2rpx;
			height: 22rpx;
			background: #28BA54;
			margin-right: 26rpx;
		}

		.confirm {
			font-weight: 400;
			font-size: 30rpx;
			color: #28BA54;
			margin-right: 40rpx;
		}
	}

	.record {
		.header {
			padding: 34rpx 30rpx 0;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.title {
				font-weight: 500;
				font-size: 36rpx;
				color: #151515;
			}
		}

		.wh40 {
			width: 40rpx;
			height: 40rpx;
		}
	}

	.main {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		padding: 0 30rpx;

		.item {
			font-weight: 500;
			font-size: 30rpx;
			color: #666666;
			padding: 12rpx 24rpx;
			margin-right: 20rpx;
			background: #F7F7F7;
			border-radius: 100rpx 100rpx 100rpx 100rpx;
			margin-top: 20rpx;
		}
	}
</style>